﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OUnsuitableProdEditV2.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OUnsuitableProdEditV2" %>

<div class="pageContent" style="">
<form id="Form1" action="MacModel/OUnsuitableProdEditV2.aspx?ajaxmethod=edit&UnsuitabledID=<%=UnsuitabledID %>&AddType=<%=AddType %>" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
    
    <div class="tabs" currentIndex="0" eventType="click">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>基本信息</span></a></li>
					<li><a href="javascript:;"><span>不适合现象描述</span></a></li>
                    <li><a href="javascript:;"><span>图片说明</span></a></li>
                    <li><a href="javascript:;"><span>质管部门处理意见</span></a></li>
                    <li><a href="javascript:;"><span>不良品出/入库单</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent">
			<div class="pageFormContent" layoutH="95" alt="基本信息">
                
                 <p>
				     <label>是否是简版:</label>
                    <input  name="IsSimple" type="checkbox" value="true"  <%=obj.IsSimple?"checked":"" %> />
			    </p>
                <p>
				    <label>票号(NO.):</label>
                    <input name="StampNo" class="text"  type="text" value="<%=obj.StampNo %>"/>
			    </p>
                <p>
				    <label>编制:</label>
                    <input name="Worker" class="text" type="text" value="<%=obj.Worker %>"/>
			    </p>
                <div class="divider"></div>
                <p>
				    <label>导出文件简称：</label>
                    <input name="ExportFileName" class="text required" type="text"  value="<%=obj.ExportFileName %>"/>
			    </p>
                <div class="divider"></div>
                <p>
				    <label>机种：</label>
                    <input name="MacType" class="text" type="text" value="<%=obj.MacType %>" />
			    </p>
                <p>
				    <label>机器编号：</label>
                    <input name="SerialNumber" class="text " type="text" value="<%=obj.SerialNumber %>" />
			    </p>
                <p>
				    <label>发行日期：</label>
                    <input name="IssueDate" class="text date required" type="text" value="<%=obj.IssueDate.ToString("yyyy-MM-dd") %>"   />
			    </p>
                <div class="divider"></div>
                <p>
				    <label>图号:</label>
                    <input name="ItemCode" class="text required" type="text" value="<%=obj.ItemCode %>"/>
			    </p>
                <p>
				    <label>名称:</label>
                    <input name="ItemName" class="text required" type="text" value="<%=obj.ItemName %>"/>
			    </p>
                <p>
				    <label>数量:</label>
                    <input name="Quantity" class="text required inputFloat"type="text" value="<%=obj.Quantity %>"/>
			    </p>
                <p>
				    <label>供应商:</label>
                    <input type="text" id="OUnsuitableProdEdit_SupplerName"  readonly name="dwz.opeV2Lookup.SupplerName" class="required textInput " value="<%=obj.SupplerName %>"/>
                    <a class="btnLook" href="SAPSupplerListLookUp.aspx" lookupgroup="opeV2Lookup" maxable="false" width="600" resizable="false" title="代理商列表">
                        <hi:text key="查找带回" />
                    </a>
<%--
                    <input name="SupplerName" id="OUnsuitableProdAdd_SupplerName"   class="text autocomplete required" type="text"  autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist" swidth="300"/>--%>
			    </p>
                <p>
				    <label>重复发生:</label>
                    <input name="IsMultiplicity" type="text" class="inputFloat" value="<%=obj.IsMultiplicity %>" />
			    </p>                
                <p>
				    <label>零件号:</label>
                    <input name="PartNum" class="text" type="text" value="<%=obj.PartNum %>"/>
			    </p>
                <div class="divider"></div>
                <p>
				    <label>发现场所:</label>
                    生产车间<input id="oeddv2_FindPrdWorkShop" name="FindPrdWorkShop" type="checkbox" value="true" <%=obj.FindPrdWorkShop?"checked":"" %> onclick="oeddv2_choose(this,'oeddv2_FindPrdWorkShop','oeddv2_FindWarehouse')"/>
                    仓库<input id="oeddv2_FindWarehouse" name="FindWarehouse" type="checkbox" value="true" <%=obj.FindWarehouse?"checked":"" %>/ onclick="oeddv2_choose(this,'oeddv2_FindPrdWorkShop','oeddv2_FindWarehouse')"/>
			    </p>
                <p>
				    <label>ERP:</label>
                    已入库<input id="oeddv2_ERPFinished" name="ERPFinished" type="checkbox" value="true" <%=obj.ERPFinished?"checked":"" %> onclick="oeddv2_choose(this,'oeddv2_ERPFinished','oeddv2_ERPNotFinished')"/>
                    未入库<input id="oeddv2_ERPNotFinished" name="ERPNotFinished" type="checkbox" value="true" <%=obj.ERPNotFinished?"checked":"" %> onclick="oeddv2_choose(this,'oeddv2_ERPFinished','oeddv2_ERPNotFinished')"/>
			    </p>
                <div class="divider"></div>
                <p>
				    <label>完成情况:</label>
                    <select name="IsComplete">
                        <option value="未完成" <%=obj.IsComplete=="未完成"?"selected":"" %>>未完成</option>
                        <option value="已完成" <%=obj.IsComplete=="已完成"?"selected":"" %>>已完成</option>
                    </select>
			    </p>
			</div>
            <script type="text/javascript">
                function oeddv2_choose(ch, id1, id2) {
                    var obj1 = document.getElementById(id1);
                    var obj2 = document.getElementById(id2);
                    if (obj1 != ch) {
                        obj1.checked = false;
                        obj2.checked = true;
                    }
                    if (obj2 != ch) {
                        obj1.checked = true;
                        obj2.checked = false;
                    }
                }
            </script>
			<div alt="不适合现象描述" class="pageFormContent" layoutH="95">
                <dl class="nowrap">
				    <dt>不适合现象描述：</dt>
                    <dd><textarea  name="UnsuitableDescribe"  cols="60" rows="5" ><%=obj.UnsuitableDescribe%></textarea></dd>
                </dl>
                <div class="divider"></div>  
                <dl class="nowrap">
				    <dt>原因分析(零件品质状况,确认结果)：</dt>
                    <dd><textarea  name="AnalysisCause"  cols="60" rows="5" ><%=obj.AnalysisCause%></textarea></dd>
                </dl>
                <div class="divider"></div>  
                <dl class="nowrap">
				    <dt>对策措施(临时对策及永久对策):</dt>
                    <dd><textarea  name="Countermeasure"  cols="60" rows="5" ><%=obj.Countermeasure%></textarea></dd>
                </dl>
                <div class="divider"></div>  
                <dl class="nowrap">
				    <dt>效果确认(供应商回复):</dt>
                    <dd><textarea  name="Verification"  cols="60" rows="5" ><%=obj.Verification%></textarea></dd>
                </dl>

            </div>	

            <div class="pageFormContent" layoutH="95">
                
                <asp:repeater id="rpImg" runat="server">
                    <HeaderTemplate>
                    </HeaderTemplate>
                     <ItemTemplate>
                        <dl class="nowrap">
				            <dt><IMG width="100px" height="80px" src="<%# Eval("IMGRelatively") %>"  id="editOUnsuitableProdUpLoad_Img_1" />
                             <a class="editOUnsuitableProdUpLoad_Img_delete" style=" float:left; padding:2px; color:Red;">删除</a>
                             </dt>
                            <dd>
                                <input name="filedata" type="file" id="editOUnsuitableProdUpLoad<%# Eval("UnImgID") %>" uploadify="uploadify" onUploadSuccess="onEditOUnsuitableProdUpLoadUploadSuccess" fileTypeDesc= 'Image Files' fileTypeExts= '*.gif; *.jpg; *.png,*.bmp,*jpeg'/>
                                <input name="IMGAbsolutePath" type="hidden" " value="<%# Eval("IMGAbsolutePath") %>" />
                                <input name="IMGRelatively" type="hidden" " value="<%# Eval("IMGRelatively") %>" />
                                图片<%# Eval("ShowIndex")%>说明:<br/>
                                <input name="Title" type="text" size="90" value="<%# Eval("Title") %>" />
                            </dd>
                        </dl>
                        <div class="divider"></div>  
                    </ItemTemplate>
                </asp:repeater>
                
            </div>
            <div class="pageFormContent" layoutH="95">
                <div class="OUnsuitableProd_Part5_div">
                    <ul>
                        <li >退货返修:</li>
                        <li ><input name="NotionReturn" type="checkbox" value="true" <%=obj.NotionReturn?"checked":"" %>/></li>
                        <li >数量:</li>
                        <li ><input name="NotionReturnNum" type="text"  value="<%=obj.NotionReturnNum%>"/> </li>
                        <li >厂内翻修:</li>
                        <li ><input name="NotionOverhaul" type="checkbox" value="true" <%=obj.NotionOverhaul?"checked":"" %>/></li>
                        <li >数量:</li>
                        <li class="last"><input name="NotionOverhaulNum" type="text"  value="<%=obj.NotionOverhaulNum%>"/> 
                        </li>                        
                    </ul>
                    <ul>
                        <li >特殊采用:</li>
                        <li ><input name="NotionSpecial" type="checkbox" value="true" <%=obj.NotionSpecial?"checked":"" %>/></li>
                        <li >数量:</li>
                        <li ><input name="NotionSpecialNum" type="text"  value="<%=obj.NotionSpecialNum%>"/> </li>
                        <li >报&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;废:</li>
                        <li ><input name="NotionScrap" type="checkbox" value="true" <%=obj.NotionScrap?"checked":"" %>/></li>
                        <li >数量:</li>
                        <li class="last"><input name="NotionScrapNum" type="text"  value="<%=obj.NotionScrapNum%>"/> 
                        </li>                        
                    </ul>
                </div>
                 <div class="divider"></div>
                <div class="OUnsuitableProd_Part5_div">
                    <ul>
                        <li >有无附属件:&nbsp;&nbsp;&nbsp;</li>
                        <li ><input name="NotionEnter" type="checkbox" value="true" <%=obj.NotionEnter?"checked":"" %>/>&nbsp;&nbsp;&nbsp;</li>
                        <li >能否返回维修:</li>
                        <li ><input name="NotionCanRepair" type="checkbox" value="true" <%=obj.NotionCanRepair?"checked":"" %>/></li>
                         <li >防止再发对策书:</li>
                        <li >要</li><li><input name="NotionBookYes" type="checkbox" value="true" style=" float:left;" <%=obj.NotionBookYes?"checked":"" %>/> </li>
                        <li >否</li><li class="last"><input name="NotionBookNo" type="checkbox" value="true" style=" float:left;" <%=obj.NotionBookNo?"checked":"" %>/></li>
                    </ul>
                    <ul>
                       
                        <li >要求回答日期:</li>
                        <li class="last"><input name="AnswerDate"  type="text" value="<%=obj.AnswerDate%>"/> </li>
                    </ul>
                </div>
              
                
               
                <div class="divider"></div> 
                <b style="font-size：14px; line-height:25px;">损失费用</b><br />
                <span style="line-height:25px;">提醒：不良品限时退回，外地供应商限时3个月，本地供应商限时1个月，超时，将按到付的方式寄回供应商处或自行处理</span>
                <div class="divider"></div> 
                <dl class="nowrap">
				    <dt><input name="LoseSurveyTitle" type="text" value="<%=obj.LoseSurveyTitle%>" /></dt>
                    <dd>
                        <input name="LoseSurveyUnit" id="OUPE_LoseSurveyUnit" class="inputFloat" type="text" value="<%=obj.LoseSurveyUnit%>" style=" float:none!important;" />
                        Hｒ×
                        <input name="LoseSurveyPrice" id="OUPE_LoseSurveyPrice" class="inputFloat" type="text" value="<%=obj.LoseSurveyPrice%>"  style=" float:none!important;" />
                        元=
                        <input name="LoseSurveySubtotal" id="OUPE_LoseSurveySubtotal" class="inputFloat" type="text" value="<%=obj.LoseSurveySubtotal%>"  style=" float:none!important;" />
                    </dd>
                </dl>
                <dl class="nowrap">
				    <dt><input name="LoseModifyTitle" type="text" value="<%=obj.LoseModifyTitle%>" /></dt>
                    <dd>
                        <input name="LoseModifyUnit" id="OUPE_LoseModifyUnit" class="inputFloat" type="text" value="<%=obj.LoseModifyUnit%>"  style=" float:none!important;" />
                        Hｒ×
                        <input name="LoseModifyPrice" id="OUPE_LoseModifyPrice" class="inputFloat" type="text" value="<%=obj.LoseModifyPrice%>"  style=" float:none!important;" />
                        元=
                        <input name="LoseModifySubtotal" id="OUPE_LoseModifySubtotal" class="inputFloat" type="text" value="<%=obj.LoseModifySubtotal%>"  style=" float:none!important;" />
                    </dd>
                </dl>
                <dl class="nowrap">
				    <dt>材料费</dt>
                    <dd>
                        <input name="LoseMaterialsRemark"type="text"  value=""  style=" width:322px;  float:none!important;" value="<%=obj.LoseMaterialsRemark%>"/>:
                        <input name="LoseMaterialsTotal" id="OUPE_LoseMaterialsTotal" class="inputFloat" type="text" value="<%=obj.LoseMaterialsTotal%>" style="float:none!important;"/>
                    </dd>
                </dl>
                <dl class="nowrap">
				    <dt>保存费</dt>
                    <dd>
                        <input name="LoseSaveUnit"  id="OUPE_LoseSaveUnit"  type="text" class="inputFloat" value="<%=obj.LoseSaveUnit%>" style=" float:none!important;"/>
                        Hｒ×
                       <input name="LoseSavePrice" id="OUPE_LoseSavePrice" type="text" class="inputFloat" value="<%=obj.LoseSavePrice%>" style=" float:none!important;"/>
                        元=
                        <input name="LoseSaveSubtotal" id="OUPE_LoseSaveSubtotal" type="text" class="inputFloat" value="<%=obj.LoseSaveSubtotal%>" style=" float:none!important;"/>
                    </dd>
                </dl>
                 <dl class="nowrap">
				    <dt>其它费用</dt>
                    <dd>
                        <input name="LoseDelaySubtotal" id="OUPE_LoseDelaySubtotal" class="inputFloat" type="text" value="<%=obj.LoseDelaySubtotal%>" />
                    </dd>
                </dl>
                <div class="divider"></div> 
                <dl class="nowrap">
                    <dt>补偿金额合计:</dt>
                    <dd>
                        <input name="LoseTotal" id="OUPE_LoseTotal" class="inputFloat" type="text" value="<%=obj.LoseTotal%>"/>
                        <span>(不含税)</span>
                        <br />提醒：对无对策又重复发生不良事项将严格追回所有损失
                    </dd>
                </dl>
                <p>
                    <label>供应商认可</label>
                    <input name="LoseSuppler" type="text" value="<%=obj.LoseSuppler%>" />
                </p>
                <p>
                    <label>责任判定</label>
                    <input id="OUnsuitableProdAdd_LoseCtrDpt" name="LoseCtrDpt" type="text" value="<%=obj.LoseCtrDpt%>" />
                </p>
            </div>
            <div alt="不良品出/入库单"  class="pageFormContent" layoutH="95">                
                 <div style="font-size：14px; line-height:22px; clear:both; color:Red;"  >
                    注：必需填写物料号才会被记录系统。
                 </div>
                 <div  style="font-size:14px!important; line-height:25px; font-weight:bold; border-bottom:1px solid #ccc;"  >
                    1.不良品返回原材料入库单
                 </div>
                 <div class="OUnsuitableProd_Part5_div">
                    <asp:repeater id="rpDetail1" runat="server">
                        <ItemTemplate>
                            <ul>
                                <li >物料号:<input name="DetailType" type="hidden" value="返回"/></li>
                                <li ><input name="DItemCode" type="text" value="<%# Eval("DItemCode") %>" toShowId="DItemCode<%# Eval("ShowIndex") %>" /></li>
                                <li >名称:</li>
                                <li ><input name="DItemName" type="text" value="<%# Eval("DItemName") %>"  toShowId="DItemName<%# Eval("ShowIndex") %>"/></li>
                                <li >数量:</li>
                                <li ><input name="DQuantity" class="number" type="text" value="<%# Eval("DQuantity") %>"  toShowId="DQuantity<%# Eval("ShowIndex") %>"/></li>
                                <li >退货返修:</li>
                                <li >
                                    <input name="IsReturned" type="hidden" value="<%# Eval("IsReturned") %>" />
                                    <input type="checkbox" class="checkbox" forcheck="IsReturned" <%# Convert.ToBoolean( Eval("IsReturned"))?"checked":"" %>/>
                                    <input name="IsDefectivePrd" type="hidden" value="false" />
                                </li>
                                <li >报废处理:</li>
                                <li class="last" >
                                    <input name="IsScrap" type="hidden" value="<%# Eval("IsScrap") %>" />
                                    <input type="checkbox" class="checkbox"  forcheck="IsScrap" <%# Convert.ToBoolean( Eval("IsScrap"))?"checked":"" %>/>
                                </li>
                            </ul>
                        </ItemTemplate>
                    </asp:repeater>
                 </div>

                 <div  style="font-size:14px!important; clear:both; line-height:25px; font-weight:bold; border-bottom:1px solid #ccc;"  >
                    2.不良品/报废原材料出库单
                 </div>
                 <div class="OUnsuitableProd_Part5_div">
                    <asp:repeater id="rpDetail2" runat="server">
                        <ItemTemplate>
                             <ul>
                                <li >物料号:<input name="DetailType" type="hidden" value="报废"/></li>
                                <li ><input name="DItemCode" type="text"  value="<%# Eval("DItemCode") %>" id="DItemCode<%# Eval("ShowIndex") %>" /></li>
                                <li >名称:</li>
                                <li ><input name="DItemName" type="text"  value="<%# Eval("DItemName") %>"  id="DItemName<%# Eval("ShowIndex") %>"/></li>
                                <li >数量:</li>
                                <li ><input name="DQuantity" class="number" type="text"  value="<%# Eval("DQuantity") %>" id="DQuantity<%# Eval("ShowIndex") %>"/></li>
                                <li >不良品转库:</li>
                                <li >
                                    <input name="IsReturned" type="hidden" value="false" />
                                    <input name="IsDefectivePrd" type="hidden" value="<%# Eval("IsDefectivePrd") %>" />
                                    <input type="checkbox"  class="checkbox" forcheck="IsDefectivePrd" <%# Convert.ToBoolean( Eval("IsDefectivePrd"))?"checked":"" %>/>
                                </li>
                                <li >报废处理:</li>
                                <li class="last" >
                                    <input name="IsScrap" type="hidden" value="<%# Eval("IsScrap") %>" />
                                    <input type="checkbox" class="checkbox" forcheck="IsScrap" <%# Convert.ToBoolean( Eval("IsScrap"))?"checked":"" %>/>
                                </li>
                            </ul>
                        </ItemTemplate>
                    </asp:repeater>

                   
                 </div>
            </div>				
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
        <style type="text/css">
            div.OUnsuitableProd_Part5_div
            {
                margin:5px 0px;    
            }
            div.OUnsuitableProd_Part5_div ul
            {
                clear:both;
            }
            div.OUnsuitableProd_Part5_div ul li
            {
                float:left; line-height:24px; height:24px; padding:2px; border-width:1px 0px 1px 1px; border-color:#CCC; border-style:solid;
            }
            div.OUnsuitableProd_Part5_div ul li.last
            {
                 border-right:1px solid #CCC;
            }
             div.OUnsuitableProd_Part5_div ul li .input
            {
                width:100px!important;
            }
        </style>
	    <script type="text/javascript">
	        function onEditOUnsuitableProdUpLoadUploadSuccess(file, data, response) {
	            if (!response)
	                return false;
	            data = eval("(" + data + ")");
	            if (!data.uploadResult) {
	                alert(data.errMsg);
	                return;
	            }
	            var $imgUploadPath = data.filePath;
	            var $trageId = data.customerInfo;

	            var $IMGAbsolutePath = $("#" + $trageId).closest("dl").find(":hidden[name='IMGAbsolutePath']"); //图片实际路际
	            var $IMGRelatively = $("#" + $trageId).closest("dl").find(":hidden[name='IMGRelatively']"); //图片相对路际
	            var $img = $("#" + $trageId).closest("dl").find("IMG");
	            $img.attr("src", $imgUploadPath);
	            $IMGAbsolutePath.val("E:/WEB/IHISCE" + $imgUploadPath);
	            $IMGRelatively.val($imgUploadPath);
	        }
	        $(function () {

	            $(".OUnsuitableProd_Part5_div").find(".checkbox").change(function () {
	                $ck = $(this).closest("li").find(":hidden[name='" + $(this).attr("forcheck") + "']");
	                // alert($(this).attr("forcheck"));
	                //alert($(this).attr("checked"));
	                $ck.val($(this).attr("checked"));
	            })

	            //金额自动统计
	            //调查费用
	            $("#OUPE_LoseSurveyUnit,#OUPE_LoseSurveyPrice").change(function () {
	                var $LoseSurveyUnit = parseFloat($("#OUPE_LoseSurveyUnit").val());
	                var $LoseSurveyPrice = parseFloat($("#OUPE_LoseSurveyPrice").val());
	                $("#OUPE_LoseSurveySubtotal").val($LoseSurveyUnit * $LoseSurveyPrice);
	                OUPEchangeLoseTotal();
	            })
	            //修正费用
	            $("#OUPE_LoseModifyUnit,#OUPE_LoseModifyPrice").change(function () {
	                var $LoseModifyUnit = parseFloat($("#OUPE_LoseModifyUnit").val());
	                var $LoseModifyPrice = parseFloat($("#OUPE_LoseModifyPrice").val());
	                $("#OUPE_LoseModifySubtotal").val($LoseModifyUnit * $LoseModifyPrice);
	                OUPEchangeLoseTotal();
	            });
	            //材料费 ，其它费用
	            $("#OUPE_LoseSurveySubtotal,#OUPE_LoseModifySubtotal,#OUPE_LoseSaveSubtotal,#OUPE_LoseMaterialsTotal,#OUPE_LoseDelaySubtotal").change(function () {
	                OUPEchangeLoseTotal();
	            })
	            //            //延误费用
	            //            $("#OUPE_LoseDelayUnit,#OUPE_LoseDelayPrice").change(function () {
	            //                var $LoseDelayUnit = parseFloat($("#OUPE_LoseDelayUnit").val());
	            //                var $LoseDelayPrice = parseFloat($("#OUPE_LoseDelayPrice").val());
	            //                $("#OUPE_LoseDelaySubtotal").val($LoseDelayUnit * $LoseDelayPrice);
	            //                changeLoseTotal();
	            //            });
	            //保存费
	            $("#OUPE_LoseSaveUnit,#OUPE_LoseSavePrice").change(function () {
	                var $LoseSaveUnit = parseFloat($("#OUPE_LoseSaveUnit").val());
	                var $LoseSavePrice = parseFloat($("#OUPE_LoseSavePrice").val());
	                $("#OUPE_LoseSaveSubtotal").val($LoseSaveUnit * $LoseSavePrice);
	                OUPEchangeLoseTotal();
	            })

	            //--
	            $("div.OUnsuitableProd_Part5_div").find(":text").change(function () {
	                var $showid = $(this).attr("toShowId");
	                $("#" + $showid).val($(this).val());
	            })
	            //删除图
	            $("a.editOUnsuitableProdUpLoad_Img_delete").click(function () {
	                var $dl = $(this).closest("dl");
	                if (confirm("确定要删除此图片吗?删除后请手动点保存")) {
	                    $dl.find("input:text,input:hidden").val("");
	                    $dl.find("img").attr("src", "#");
	                }
	            })
	        });
	        function OUPEchangeLoseTotal() {
	            //            var $LoseTotal = parseFloat($("#OUPE_LoseSurveySubtotal").val()) + parseFloat($("#OUPE_LoseModifySubtotal").val()) + parseFloat($("#OUPE_LoseMaterialsTotal").val()) + parseFloat($("#OUPE_LoseDelaySubtotal").val()) + parseFloat($("#OUPE_LoseSaveSubtotal").val());
	            //            $("#OUPE_LoseTotal").val($LoseTotal);
	            var $LoseTotal = parseFloat($("#OUPE_LoseSurveySubtotal").val()) + parseFloat($("#OUPE_LoseModifySubtotal").val()) + parseFloat($("#OUPE_LoseSaveSubtotal").val());

	            parseFloat($("#OUPE_LoseMaterialsTotal").val()) + parseFloat($("#OUPE_LoseDelaySubtotal").val())
	            var $temp = parseFloat($("#OUPE_LoseMaterialsTotal").val())
	            if (isNaN($temp))
	                $temp = 0
	            $LoseTotal = $LoseTotal + $temp;

	            $temp = parseFloat($("#OUPE_LoseDelaySubtotal").val())
	            if (isNaN($temp))
	                $temp = 0
	            $LoseTotal = $LoseTotal + $temp;

	            $("#OUPE_LoseTotal").val($LoseTotal);
	        }

        </script>
    </div>
    <div class="formBar">
        <ul>
            <li>
            <div class="buttonActive"><div class="buttonContent">                 
            <button type="submit">保存</button></div></div>
            </li>
            <li>
            <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
            </li>
        </ul>
    </div>       
</form>
</div> 
